Apparatus and method for interpolating a pixel from an intermediate line of a field

ABSTRACT

The invention relates to a method for interpolating a pixel from an intermediate line of a first field of a sequence of interlaced fields.

BACKGROUND OF THE INVENTION

[0001] The invention relates to the field of video signal processing, and in particular apparatus and method of interpolating a pixel from an intermediate line of a first field of a sequence of interlaced fields.

[0002] Television signals normally contain information for temporally sequential fields that are displayed on a screen, wherein two successive fields are interlaced. That is, each field-contains image information only in every other image line (i.e., where an image line for which image information is present in the one field is empty in the second field).

[0003]FIG. 1 illustrates two such successive fields A and B in schematic form. The first field A includes image lines A1, A2, A3 and A4 for which a received video signal contains image information. The raster positions of fields A and B are mutually offset, such that the positions of the image lines from field B correspond exactly to the positions of the empty intermediate lines of field A, and vice versa.

[0004] In order to enhance image quality, it is often desirable to generate frames for the display of a video signal containing a sequence of fields, that is, images in which no empty intermediate lines are present.

[0005] The approach is proposed in European Patent 0192292 B1 for interpolating a pixel from an intermediate line of a field, wherein two pixels are selected from the field in which the pixel is to be interpolated. That is, one pixel of an image line above the pixel to be interpolated and one pixel of an image line below the pixel to be interpolated, with the horizontal positions of the selected pixels corresponding to the horizontal position of the pixel to be interpolated. In addition, a pixel from an image line is selected from a temporally following field, and the vertical position of the selected image line corresponds to the position of the image line of the pixel to be interpolated. The horizontal position of the selected pixel corresponds to the horizontal position of the pixel to be interpolated. In the known method, the average of the image information values—usually the brightness values or luminance values—is determined for these three pixels, and for the pixel to be interpolated the image information of the pixel whose image information value comes the closest to the average so determined is selected. The pixel of the second field is, in other words, utilized for the interpolation when the image information value of this pixel lies between the image information values from the pixels of the field with the intermediate point to be interpolated. Otherwise, the image information of one of the pixels from the adjacent line of the pixel to be interpolated is selected, with the result that one of these values is doubled (i.e., displayed twice one below the other). However, this repetition of a pixel results in a positionally incorrect display in the case of pronounced vertical transitions, a result which is particularly evident in the image along diagonal edges.

[0006] Therefore, there is a need for an improved technique of interpolating a pixel from an intermediate line of a field from a sequence of interlaced fields.

SUMMARY OF THE INVENTION

[0007] In a method of interpolating a pixel from an intermediate line of a field from a sequence of interlaced fields, provision is made to select at least one first pixel from an image line above the intermediate line in the first field, and at least one second pixel from an image line below the intermediate line in the first field, and to select from a second field at least one third pixel from an image line for which the vertical position corresponds to the position of the intermediate line of the pixel to be interpolated, wherein the second field preferably temporally follows the first field. Subsequently, determination is made of an interval provided by image information values for the first and second pixels, and of the position of the image information value of the third pixel relative to the interval limits. The image information values for the first, second and third pixels are then mixed by multiplying the first image information value by a first weighting factor, the second information value by a second weighting factor, and the third image information value by a third weighting factor, then adding the weighted image information values, where the value of the third weighting factor is a function of the mathematical distance of the third information value from the closest interval limit.

[0008] The third weighting factor preferably decreases with increasing distance from the closest interval limit when the third information value lies outside the interval provided by the first and second image information values. In analogous fashion, the third weighting factor increases with decreasing distance from the center of the interval when the third image information value lies within the interval. The increase or decrease of the weighting factor preferably being proportional to the reciprocal of the distance from the closest interval limit or from the center of the interval.

[0009] The first and second weighting factors for the image information values of the first and second pixels are preferably of equal size.

[0010] In one embodiment, provision is made to set the third weighting factor to zero if its mathematical distance from the closest interval limit of the interval provided by the image information values of the first and second pixels exceeds a limit normalized for the interval width. This limit corresponds in one embodiment to the interval width or to double the interval width.

[0011] If the third image information value lies within the interval, then provision is made in one embodiment to set the third weighting factor to one. In another embodiment, the third weighting factor is set to one when its mathematical distance from the center of the interval is smaller than a specified value normalized for the interval width, this limit preferably being less than one fourth the interval width.

[0012] In another embodiment, provision is made to select the first, second and third weighting factors to be of equal size for the case in which the third image information value lies within the specified interval.

[0013] In one embodiment, mixing of the three image information values may be implemented in two steps, wherein the image information values of the first and second pixels are mixed in a first step, the image information values for example being weighted equally. The intermediate value obtained by mixing the first and second image information values is mixed with the third image information value in a second step, wherein the weighting factor of the third image information value is a function of its mathematical distance from the interval limits. For the weighting factor of the intermediate value during mixing in the second step, the applicable requirement is that this be the difference between 1 and the third weighting factor.

[0014] In selecting the third weighting factor, the mathematical distance of the third pixel from the intermediate value is preferably also taken into account.

[0015] These and other objects, features and advantages of the present invention will become more apparent in light of the following detailed description of preferred embodiments thereof, as illustrated in the accompanying drawings.

BRIEF DESCRIPTION OF THE DRAWING

[0016]FIG. 1 provides schematic diagrams of two temporally successive fields;

[0017]FIG. 2 is a graphic diagram of the position of selected image information values in a vertically plotted image information value scale;

[0018]FIG. 3 is a block diagram illustration of a first embodiment of an interpolation device;

[0019]FIG. 4 is a block diagram illustration of a second embodiment of an interpolation device;

[0020]FIG. 5 is a block diagram illustration of a third embodiment of an interpolation device;

[0021]FIG. 6 is a block diagram illustration of a fourth embodiment of an interpolation device;

[0022]FIG. 7 is a block diagram illustration of a fifth embodiment of an interpolation device; and

[0023]FIG. 8 is a plot of the upper limit of the third weighting factor as a function of the third image information value.

DETAILED DESCRIPTION OF THE INVENTION

[0024] A method for interpolating a pixel Px from an intermediate line of a field A shown schematically in FIG. 1 includes the selection of a first pixel P0 and second pixel P2 in field A in which pixel Px of the intermediate line is to be interpolated. The first pixel P0 lies in an image line A2 that lies above the intermediate line of the pixel to be interpolated Px, and the second pixel P2 lies in an image line A3 below the intermediate line with the pixel to be interpolated Px. The horizontal position of the first and second pixels P0, P2 corresponds to the horizontal position of pixel to be interpolated Px. In addition, a third pixel P1 is selected from a field B that preferably temporally follows or precedes field A, the pixel originating in image line B2, the vertical position of which corresponds to the position of the intermediate line with the pixel to be interpolated Px in field A. The horizontal position of the third pixel P1 selected in second field B corresponds to the horizontal position of the pixel to be interpolated Px.

[0025] An image information value, such as a brightness value or luminance value L0, L1, L2 is allocated to each of these pixels P0, P1, P2, respectively. These image information values L0, L1, L2 are plotted vertically in FIG. 2 on an image information value scale L, in which the image information values in the case of luminance values may, for example, assume values of between 0 and 255.

[0026] In the example chosen in FIG. 2, the image information values L0, L1, L2 are of differing size, with the image information value L1 of the pixel P1 lying outside an interval specified by the first image information value L0 and the second image information value L2.

[0027] The image information values of selected pixels P0, P1, P2 are each multiplied by a weighting factor K0, K1, K2, and the resulting weighted image information values are added to generate an image information value Lx, which can be expressed:

Lx=(K 0·L 0)+(K 1·L 1)+(K 2·L 2)   (1)

[0028] The weighting factors K0, K1, K2 are selected such that the image information value of the resulting pixel Lx lies within the interval specified by the first and second image information values L0, L2. The third weighting factor K1 is selected as a function of its mathematical distance from the interval limits. For example, in FIG. 2 the distance of the third image information value L1 from the upper interval limit specified by the second image information value L2 is denoted by A.

[0029] The first image information value L0 and the second image information value L2 are preferably of equal weight, where the expression applying to the image information value Lx of the pixel to be interpolated Px is:

Lx=(1−K 1)·(L 0+L 2)/2+K 1·L 1.   (2)

[0030] The fraction of the image information value Lx resulting from the first pixel L0 and the second pixel L2 corresponds to the average M shown in FIG. 2 of the image information values L0, L2, the average being multiplied by a weighting factor (1−K1), where the sum of all the weighting factors K0, K1, K2 is always equal to 1.

[0031] In order to ensure in this case that the image information value Lx of the pixel to be interpolated Px lies within the interval specified by values L0 and L1, and that the expression 0≦K≦1 applies for the weighting factor, the following inequality must be fulfilled:

|(1−K 1)·M+K 1·L 1−M|≦|(L 0−L 2)/2   (3)

[0032] For the third weighting factor K1, given the equal weighting of the first and second image information values L0, L2, the applicable expression is:

K 1≦|(L 0—L 2)/2·|L 1−M 1   (4)

[0033]FIG. 8 is a plot of the upper limit of the third weighting factor K1 based on the above inequality, the third weighting factor in the graph of FIG. 8 being set at one when the third image information value L1 lies within the interval specified by image information values L0 and L2. In other words, FIG. 8 shows:

K1=1 for L1 within [L0; L1]  (5.1)

K 1≦|(L 0−L 2)|/2·|L 1−M for L 1 outside [L 0; L 1]  (5.2)

[0034] If the third weighting factor K1 is set equal to the value indicated in equation (5.2) when the third image information value L1 is selected to lie outside the interval specified by the image information values L0 and L2, then the resulting image information value Lx lies at the respective interval limit closest to the third image information value L1. If the third image information value L1 lies within this interval, then the weighting factor may assume other values in addition to 1, as will be explained below.

[0035] The third weighting factor K1 is preferably selected such that it is considerably smaller than the limit provided in equation (4) or equation (5.2), by employing, for example, the square of the right-hand expression of the equation (4) or of the equation (5.2) for the value of the third weighting factor K1, or by squaring the denominator in the right-hand expression.

[0036] If the image information values L0 and L2 are not equally weighted, then K1 must be the applicable weighting factor so that the resulting pixel Lx lies at the interval limits, or within the interval between the upper interval limits [L1; L2]:

K 1≦(M−(K 0·L 0+K 2·L 2)±0.5·|(L 0−L 2)|)/L 1   (6)

[0037] A plus sign before the expression 0.5·|(L0−L2) causes the resulting image information value Lx to be greater than the average, and a minus sign before the expression causes the resulting image information value to be smaller than the average.

[0038] The weighting factor K1 is preferably considerably smaller than the expression provided in the right-hand part of the equation (6).

[0039]FIG. 3 a device for implementing the method according to an aspect of the invention, which device has a selection device 10 that receives the video signal S(t) and filters out the image information values L0, L1, L2 from this video signal and provides these signals on lines 12-14, respectively. The image information values L0, L1, L2 are input to an analyzer 20 that generates weighting factors K0, K1, K2 on lines 16-18, respectively, from the image information values L0, L1, L2. Mixer 30 supplies the image information value Lx on line 19 by weighting the first image information value L0 by the first weighting factor K0; the second image information value L2 by the second weighting factor K2, and the third image information value L1 by the third weighting factor K1, then adding the weighted image information values.

[0040]FIG. 4 shows another embodiment of an interpolation device wherein the mixing is performed in two steps by this device. In this device, the image information values L0, L1, L2 on the lines 12-14 are fed to an analyzer 21. The first image information value L0 and the second image information value L2 are fed to a first mixer 33, which provides the intermediate image information value Lz on line 22. From the image information values L0, L1, L2, the analyzer 21 generates weighting factor K01, which is fed to the first mixer 33, as well as a second mixing factor K11 that is fed to a second mixer 32. The intermediate image information value Lz on the line 22 results from mixing the first image information value L0 and the second image information value L2, where weighting factor K01 indicates, for example, how strongly the first image information value L0 is weighted—namely, for the intermediate image information value Lz, the following expression applies:

Lz=K 01·L 0+(1−K 01)·L 2   (7)

[0041] The weighting factor K11 is fed to the second mixer 32 and determines how strongly the third image information value L1 is weighted. The image information value Lx output from the second mixer 32 can be expressed as:

Lx=K 11·L 1+(1−K 11)·Lz   (8)

[0042] where the image information values L0, L2 correspond to the average M when the weighting factor K01=0.5.

[0043] The weighting factor K11 is generated such that the resulting image information value Lx lies within the interval limits specified by the image information values L0 and L2.

[0044]FIG. 5 shows a device which has been modified relative to that of FIG. 4 in which, in addition to the image information values L0, L2, the intermediate image information value Lz is also input to an analyzer 22 that generates weighting factors K01 and K11.

[0045] The generation of weighting factor K01, which indicates the relative weighting of the first image information value L0 and the second image information value L2 as a function of the image information values L0 and L2, enables one of these two pixels to be more strongly weighted, for example as a function of the interval width.

[0046]FIG. 6 shows a device which has been modified relative to that of FIG. 5 in that weighting factor K01 is specified from an external source to be a constant (e.g., 0.5), independent of the image information values L0, L1, L2.

[0047]FIG. 7 shows a device, in which a second mixer 35 contains a switch 36 that outputs, as a function of the third weighting factor K11, either the third image information value L1 or the intermediate image information value Lz generated from the first and second image information values L0, L2 as the output signal Lx.

[0048] The invention is not restricted to image processing. It may be generally applied to signals that include a signal sequence having output values and an interpolated intermediate value that is allocated to two output values. An example of such a signal sequence is a sequence produced by oversampling an output sequence in which one interpolated intermediate value each lies temporally or spatially between two output values. Known interpolation methods for this type of intermediate value generation often provide insufficient results, specifically undesirable overshoots, for signal jumps, that is, in the case of large amplitude differences for the two output values on which the interpolated intermediate value depends.

[0049] This problem is remedied by application of the method outlined above to the signal sequence having output values and interpolated intermediate values, wherein one of the output values is processed based on the first image information value, the second of the output values is processed based on the second image information value, and the intermediate value that is a function of the first and second output values is processed based on the third image information value. The signal generated according to the invention provides a corrected interpolated intermediate value.

[0050] Although the present invention has been shown and described with respect to several preferred embodiments thereof, various changes, omissions and additions to the form and detail thereof, may be made therein, without departing from the spirit and scope of the invention. 

What is claimed is:
 1. Method of interpolating a pixel (Px) from an intermediate line of a first field in a sequence of interlaced fields (A, B), comprising: selecting at least one first pixel (P0) to which a first image information value (L0) is allocated from an image line lying above the intermediate line (A1) in the first field (A), and at least one second pixel (P2) to which a second image information value (L2) is allocated from an image line lying below the intermediate line (A2) in the first field (A); selecting at least one third pixel (P1) to which a third image information value (L1) is allocated from an image line (B2), the vertical position of which corresponds to the position of the image line of the pixel to be interpolated (Px), from a second field (B); determining a limit provided by the first and second image information values (L0, L2); determining the position of the third image information value (L1) relative to the interval limits; mixing the image information values (L0, L1, L2) by multiplying the first image information value (L0) by a first weighting factor (k0), the second image information value (L1) by a second weighting factor (k1), and the third image information value (L1) by a third weighting factor (k1), then adding the weighted image information values to obtain an image information value (Lx) for the pixel (Px) of the intermediate line, where the value of the third weighting factor (k1) is a function of the mathematical distance of the third information value (L1) from the interval limits, and the weighting factors (k0, k1, k2) are selected such that the image information value of the pixel to be interpolated lies with the interval limits.
 2. Method according to claim 1, wherein the third weighting factor decreases with increasing distance from the closest interval limit when the third image information value (L1) lies outside the interval.
 3. Method according to claim 2, wherein the third weighting factor decreases in proportion to the distance from the closest interval limit when the third image information value (L1) lies outside the interval.
 4. Method according to claim 2, wherein the first and second weighting factors (k0, k2) are of equal size.
 5. Method according to claim 1, wherein the third weighting factor (k1) is set to zero when its mathematical distance from the closest interval limit exceeds a specified value normalized for the interval width.
 6. Method according to claim 5, wherein the third weighting factor (k1) is set to zero when its mathematical distance from the closest interval limit is more than double the interval width.
 7. Method according to claim 1, wherein the first, second, and third weighting factors (k0, k1, k2) are set to equal size when the third image information value (L1) lies within the interval.
 8. Method according to claim 1, wherein the value of the third weighting factor (k1) increases with decreasing distance from the center (M) of the interval when the third image information value (L1) lies within the interval.
 9. Method according to claim 1, wherein the third weighting factor (k1) is set to one when the third image information value (L1) lies within the interval.
 10. Method according to claim 1, wherein the third weighting factor (k1) is set at one when the mathematical distance of the third image information value (L1) from the center (M) of the interval is smaller than a specified value normalized for the interval width.
 11. Method according to claim 9, wherein the third weighting factor (k1) is set at one when the mathematical distance of the third image information value (L1) from the center (M) of the interval is smaller than one fourth the interval width.
 12. Method according to claim 1, wherein first an intermediate value is generated from the first image information value and the second image information value by multiplying the first image information value (L0) by a first weighting factor (k01), and the second image information value (L2) by a second weighting factor (k21), then adding the weighted image information values; and in which subsequently the intermediate value (Lz) is mixed with the third image information value (L1) by weighting the intermediate value (Lz) and the third image information value (L1), then adding the weighted intermediate value and weighted third image information value to generate the image information of the pixel to be interpolated (Px), wherein the weighting factor of the third image information value (L1) is a function of its mathematical distance from the interval limits or the intermediate value (Lz).
 13. Method according to claim 12, wherein the weighting factor of the third pixel (L1) is a function of the mathematical distance from the intermediate value.
 14. A method for processing a signal sequence having output signal values and interpolated intermediate values, wherein one intermediate value is allocated to two output signal values, said method comprising: determining an interval given by the output signal values; determining the position of the intermediate value plotted relative to interval limits; mixing the output signal values and the intermediate value by multiplying one of the output signal values by a first weighting factor, the other of the output signal values by a second weighting factor, and the intermediate value by a third weighting factor, then adding the weighted image information values to obtain an interpolated intermediate value, wherein the value of the third weighting factor is a function of the mathematical distance of the intermediate value from the interval limits and is selected such that the value of the intermediate value to be interpolated lies within the interval limits. 